package test;

import java.util.*;

public class Aiqiyi2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        if (getRes(str)){
            System.out.println("True");
        }else {
            System.out.println("False");
        }
    }

    private static boolean getRes(String str) {
        Set<String> mome = new HashSet<>();
        int[] cur = new int[2];
        mome.add(Arrays.toString(cur));
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) == 'E'){
                cur[0] += 1;
            }
            if (str.charAt(i) == 'N'){
                cur[1] += 1;
            }
            if (str.charAt(i) == 'W'){
                cur[0] -= 1;
            }
            if (str.charAt(i) == 'S'){
                cur[1] -= 1;
            }
            String curKey = Arrays.toString(cur);
            if (mome.contains(curKey)){
                return true;
            }else {
                mome.add(curKey);
            }
        }

        return false;
    }

}
